//
//  FYMainViewController.swift
//  douyuzhibo
//
//  Created by 杜方宜 on 2017/7/13.
//  Copyright © 2017年 pelesys-luoyang. All rights reserved.
//

import UIKit

class FYMainViewController: UITabBarController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        addChileVc("Home")
        addChileVc("Live")
        addChileVc("Follow")
        addChileVc("Profile")
        // Do any additional setup after loading the view.
    }
    
    fileprivate func addChileVc(_ storyName:String){
        //1.通过storyBoard获取控制器
        let childVc = UIStoryboard(name: storyName, bundle: nil).instantiateInitialViewController()
        //2.讲chiledVc做为子控制器
        addChildViewController(childVc!)
    }
    
}
